gtk_window_set_mnemonic_modifier (GTK_WINDOW (priv->toplevel), 0);
_gtk_window_request_csd (GTK_WINDOW (priv->toplevel));
- gtk_style_context_add_class (gtk_widget_get_style_context (priv->toplevel), "popup");
+ gtk_style_context_add_class (gtk_widget_get_style_context (priv->toplevel),
+ GTK_STYLE_CLASS_POPUP);
/* Refloat the menu, so that reference counting for the menu isn't
* affected by it being a child of the toplevel
/* Predefined set of widget regions */
+/**
+ * GTK_STYLE_CLASS_POPUP:
+ *
+ * A CSS class that is added to the toplevel windows used for menus.
+ *
+ * Since: 3.14
+ */
+#define GTK_STYLE_CLASS_POPUP "popup"
+
/**
* GTK_STYLE_REGION_ROW:
*